Drag and Drop(Line Objects)

Drag and Drop Line Objects From wthin any axes in any figure.

You are now following this Submission

this function provides drag and drop of any line objects in an axes within a figure window;
to use this:
just give the handle of the figure or figures that you want to have D&D functionality associated with it to the Mouse_over_lineObj function and you done!
usage:
1) you can drag and drop a line object from one axes to another either within the same figure or on a different figure.
2) you can also drop the line object to outside of a figure in which case it will provide a separate figure, axes, and other interactive tools for you.
3) function is maintainable and very easy to be included with any GUI tools.
4) easy to read and understand.
5) and a lot of modification and customization can be added to it.
6) that is it ENJOY IT.

Cite As

rasam aliazizi (2026). Drag and Drop(Line Objects) (https://www.mathworks.com/matlabcentral/fileexchange/33041-drag-and-drop-line-objects), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0